package l1j.server.server.command.executor;

import java.util.StringTokenizer;

import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.serverpackets.S_SkillIconThirdSpeed;
import l1j.server.server.serverpackets.S_SystemMessage;

public class L1PacketTest implements L1CommandExecutor {

	public static L1PacketTest getInstance(){
		return new L1PacketTest();
	}


	@Override
	public void execute(L1PcInstance pc, String cmdName, String arg) {

		try {
			final StringTokenizer stringtokenizer = new StringTokenizer(arg);
			final int sprid = Integer.parseInt(stringtokenizer.nextToken());
			final int time = Integer.parseInt(stringtokenizer.nextToken());
			pc.sendPackets(new S_SkillIconThirdSpeed(sprid, time));
		} catch (final Exception e) {
			pc.sendPackets(new S_SystemMessage(cmdName + " castgfxid 請輸入。"));
		}

	}

}
